package com.example.easycharge.repository;

import com.example.easycharge.entity.Report;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.Modifying;
import org.springframework.data.jpa.repository.Query;
import org.springframework.stereotype.Repository;

import javax.transaction.Transactional;

@Repository
public interface ReportRepository extends JpaRepository<Report,Long> {
    @Modifying
    @Transactional
    @Query(value = "delete from  Vehicle ")
    void initReport();
}
